//
//  SelectSubTag.m
//  HotWord
//
//  Created by iPhuan on 13-4-1.
//
//

#import "SelectSubTag.h"

@implementation SelectSubTag

- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:self.tagId forKey:@"tagId"];
	[aCoder encodeObject:self.name forKey:@"name"];
	[aCoder encodeObject:self.superId forKey:@"superId"];
    [aCoder encodeObject:self.selectTagTitle forKey:@"selectTagTitle"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	if ([self init]) {
		self.tagId = [aDecoder decodeObjectForKey:@"tagId"];
		self.name = [aDecoder decodeObjectForKey:@"name"];
		self.superId = [aDecoder decodeObjectForKey:@"superId"];
        self.selectTagTitle = [aDecoder decodeObjectForKey:@"selectTagTitle"];
    }
	return self;
}

-(void)dealloc
{
    [_tagId release];
    [_name release];
    [_superId release];
    [_selectTagTitle release];
    [super dealloc];
}


@end
